package com.wkn.wknAdmin.controller;

import com.wkn.wknAdmin.entity.dto.UserDto;
import com.wkn.wknAdmin.result.ResultVO;
import com.wkn.wknAdmin.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Title:
 * @Description:
 * @Author: WKN
 * CreateDate: 2022/8/12 23:08
 */
@RestController
public class LoginController {

    @Resource
    private UserService userService;


    @PostMapping("/login")
    public ResultVO login(@RequestBody UserDto userDto) {
        return userService.login(userDto);
    }
}
